﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JiveMessenger.ViewModels;
using JiveMessenger.Models;
using System.Collections.ObjectModel;

namespace JiveMessenger.SampleData
{
    class SampleViewModelManageGroup:IViewModelManageGroup
    {
        public Models.IChatGroup ChatGroup
        {
            get
            {
                return VmHelper.Locator.ViewModelContactList.CurrentUser.ChatGroups.FirstOrDefault();
            }
            set
            {
                
            }
        }

        public System.Collections.ObjectModel.ObservableCollection<Models.IGroupMember> GroupMembers
        {
            get
            {
                return new ObservableCollection<IGroupMember>(((JiveChatGroupModel)this.ChatGroup).GroupMembers.Select(x => new JiveGroupMember(x.Key, "testnick", x.Value)));
            }
            set
            {
               
            }
        }
    }
}
